import type Component from "@/components/Component.ts";

/**
 * created by yangtong on 2025/6/14 下午5:14
 * <br />
 * 组件暴露给外部的类型
 */
export default interface InputComponent extends Component{
    validate: () => boolean
    clearError: () => void
    getValue: () => string | number | null | undefined
    setValue: (value: string | number | null | undefined) => void
    getErrorMessage: () => string
    getFieldName: () => string | undefined
    isRequired: () => boolean
}